package com.example.openapidoc.rest;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试类
 * @author Administrator
 * @date 2024/05/14
 */
@RestController
public class TestRest {


    /**
     * 测试
     * @return {@link String}
     */
    @GetMapping("test")
    public String test() {
        return "ok";
    }


    public static void main(String[] args) {
        DateTime start = DateUtil.parse("2014-03-02");
        DateTime end = DateUtil.parse("2014-06-02");
        System.out.println(DateUtil.betweenDay(start, end, false));
        System.out.println(DateUtil.betweenDay(start, end, true));
    }
}
